class CreateAcademicDegrees < ActiveRecord::Migration
  def self.up
    create_table :academic_degrees do |t|
      t.text :name
      t.string :abbreviation
      t.integer :ordering

      t.timestamps
    end
    add_index(:academic_degrees, :name, :unique => true)
  end

  def self.down
    remove_index(:academic_degrees, :column => :name)
    drop_table :academic_degrees
  end
end
